package lzy.mbh;

/**
 * class user
 * @author ranger
 */
public class User {
    String name;
    String sex;
    String speciality;

    public User() {
    }

    public User(String name, String sex, String speciality) {
        this.name = name;
        this.sex = sex;
        this.speciality = speciality;
    }

    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", speciality='" + speciality + '\'' +
                '}';
    }
}
